﻿<%@ Page CodeFileBaseClass="AliCMS.Lib.SystemPageBase" %>
<section data-page="member_level_list" data-title="会员等级列表" data-lang="<%=ContentLang%>">
	<dl class="path1">
		<dt><span>您的位置：</span>会员等级列表</dt>
		<dd>
			<select data-class="<%=ContentLang%>Font" data-ali-widget="combo">
				<ali:List Mark="System" Object="Language" Source="Manager.Languages">
					<ali:Record>
						<%If Convert.ToString(Ab) == ContentLang%>
							<option value="<%=Ab%>" selected><%=[AliCMS.SystemModule.Alias.Language.Name + PageLang]%></option>
						<%Else%>
							<option value="<%=Ab%>"><%=[AliCMS.SystemModule.Alias.Language.Name + PageLang]%></option>
						<%EndIf%>
					</ali:Record>
				</ali:List>
			</select>
		</dd>
	</dl>
	<div class="ali-tabs sub-nav" data-height-style="fill" data-event="click">
		<div class="ali-tabs-header">
			<div class="ali-tabs-nav-container">
				<ul>
					<li class="ali-active"><a>会员等级列表</a></li>
					<li><a href="add.aspx?Lang=<%=ContentLang%>" target="ali-navtab">添加会员等级</a></li>
				</ul>
			</div>
		</div>
		<div class="ali-tabs-body">
			<div class="ali-tabs-panel">
				<div class="content">
					<table data-ali-widget="grid" class="grid1">
						<thead>
							<tr>
								<th width="60">序号</th>
								<th>名称</th>
								<th width="100">会员费用</th>
								<th width="100">会员提成</th>
								<th width="100">起始编号</th>
								<th width="100">可否申请</th>
								<th width="80">删除</th>
							</tr>
						</thead>
						<tbody>
							<ali:List ID="List" Object="MemberLevel" Validate="True">
								<ali:Record>
									<tr data-id="<%=InnerID%>">
										<td><%=Sort%></td>
										<td><a href="edit.aspx?Lang=<%=ContentLang%>&ID=<%=InnerID%>" target="ali-navtab" class="<%=ContentLang%>Font"><%=Name%></a></td>
										<td>
											<%If Convert.ToDecimal(Fee) == 0%>
												免费
											<%Else%>
												<%If Convert.ToString(TimeUnit) == "MONTH"%>
													<%=Fee%>元/<%=Convert.ToInt32(TimeAmount) == 1 ? "" : Convert.ToString(TimeAmount)%>月
												<%ElseIf Convert.ToString(TimeUnit) == "SEASON"%>
													<%=Fee%>元/<%=Convert.ToInt32(TimeAmount) == 1 ? "" : Convert.ToString(TimeAmount)%>季
												<%ElseIf Convert.ToString(TimeUnit) == "HALF_YEAR"%>
													<%=Fee%>元/<%=Convert.ToInt32(TimeAmount) == 1 ? "" : Convert.ToString(TimeAmount)%>半年
												<%ElseIf Convert.ToString(TimeUnit) == "YEAR"%>
													<%=Fee%>元/<%=Convert.ToInt32(TimeAmount) == 1 ? "" : Convert.ToString(TimeAmount)%>年
												<%Else%>
													<%=Fee%>元
												<%EndIf%>
											<%EndIf%>
										</td>
										<td><%=Commision%>%</td>
										<td><%=InitialNo%></td>
										<td><%If Convert.ToBoolean(CanApply)%>是<%Else%>否<%EndIf%></td>
										<td><a href="" class="ali-button" data-operation="Delete">删除</a></td>
									</tr>
								</ali:Record>
							</ali:List>
						</tbody>
					</table>
				</div>
			</div>
		</div>
		<div class="ali-tabs-bottom"><b></b></div>
	</div>
</section>